import { createApp } from "vue";

import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";

// 样式
import "./assets/main.css";

// 适配
import "./utilss/rem";

//初始化样式
import "normalize.css";

// 字体图标
import "../icon_font/iconfont.css";
import "../icon_font/login_icon/iconfont.css";
// 数据持久化
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

// 引入 pinia
const store = createPinia();
// pinia持久化
store.use(piniaPluginPersistedstate);

const app = createApp(App);

app.use(store);
app.use(createPinia());
app.use(router);

app.mount("#app");
